# Localizacao do arquivo de servico

    sudo vim /lib/systemd/system/ikiwiki.service

## Local

    vim ${HOME}/.config/systemd/user/ikiwiki.service

# Conteúdo do arquivo de servico

    [Unit]
    Description=Ikiwiki fcgi socket wrap
    After=network.target
    
    [Service]
    Type=simple
    User=www-data
    Group=www-data
    ExecStart=/usr/bin/spawn-fcgi -s /tmp/fcgi.socket -n -- /usr/sbin/fcgiwrap
    
    [Install]
    WantedBy=multi-user.target

# Configurando systemd

Colocar servico na inicializacao e iniciar agora

    sudo systemctl enable ikiwiki.service
    sudo systemctl -l start ikiwiki.service

## Local

    systemctl --user enable ikiwiki.service
    systemctl --user -l start ikiwiki.service
